package com.loopy.fruns.dao.impl;

import com.loopy.fruns.dao.AdminDAO;
import com.loopy.fruns.dao.BasicDAO;
import com.loopy.fruns.entity.Admin;
import com.loopy.fruns.entity.Member;

public class AdminDAOImpl extends BasicDAO<Admin> implements AdminDAO {
    @Override
    public Admin queryAdminByUserNameAndPassword(String username, String password) {
        String sql="select * from admin where username=? and password=md5(?)";
        Admin admin = QuerySingle(sql, Admin.class, username, password);
        return admin;
    }
}
